import { Component, OnInit, Input } from "@angular/core";
import { AlertController } from "@ionic/angular";

@Component({
  selector: "app-business-city",
  templateUrl: "./business-city.component.html",
  styleUrls: ["./business-city.component.scss"]
})
export class BusinessCityComponent implements OnInit {
  @Input() tagData: any;
  constructor(private alertController: AlertController) {}

  ngOnInit() {}

  async handleClick(title, data) {
    const alert = await this.alertController.create({
      header: title,
      message: data,
      cssClass: "businessCityAlert"
    });
    await alert.present();
  }
}
